
<template>
    <div class="spanControl-list" style="width: 100%;margin-left: 0!important;">
        <el-card class="box-card card-head" style="margin: 0px; width: 100%; min-height: 99%">
            <div slot="header" class="clearfix">
                <span>查看物流线路</span>
            </div>

            <div class="text item">
                <el-form label-position="left" inline class="display-form">
                        <!--<el-form-item label="标识">-->
                            <!--<span>{{ route.EId }}</span>-->
                        <!--</el-form-item>-->
                        <el-form-item label="名称">
                            <span>{{ route.name }}</span>
                        </el-form-item>
                        <el-form-item label="线路名称">
                            <span>{{ route.routeName }}</span>
                        </el-form-item>
                        <el-form-item label="线路编号">
                            <span>{{ route.routeCode }}</span>
                        </el-form-item>
                        <!--<el-form-item label="备注">-->
                            <!--<span>{{ route.remark }}</span>-->
                        <!--</el-form-item>-->
                        <!--<el-form-item label="创建人">-->
                            <!--<span>{{ route.createId }}</span>-->
                        <!--</el-form-item>-->
                        <!--<el-form-item label="创建时间">-->
                            <!--<span>{{ route.createDatetime }}</span>-->
                        <!--</el-form-item>-->
                        <!--<el-form-item label="修改人">-->
                            <!--<span>{{ route.updateId }}</span>-->
                        <!--</el-form-item>-->
                        <!--<el-form-item label="修改时间">-->
                            <!--<span>{{ route.updateDatetime }}</span>-->
                        <!--</el-form-item>-->
                </el-form>
            </div>
        </el-card>
    </div>
</template>

<script>
import {RouteService} from './RouteService';

export default {
    components: {
    },
    data() {
        return {
            route:{},
        }
    },
    methods: {
        findRouteForView(routeId)//查找物流线路
        {
            RouteService.findRouteForView(routeId).then((resp) => {
                this.route = resp.data;
        }).catch((error) => {
            this.$message({
            type: 'error',
            message: '查询物流线路出错'
        })
        })
        },
    },
    created() {
        const routeId = this.$route.params.routeId;
        this.findRouteForView(routeId);
    },
}

</script>
<style scoped lang="scss">

</style>
